package cnki.tpi.kbatis.config;

import cnki.tpi.kbatis.sqlsource.iface.SqlSource;
import lombok.Data;

/**
 * @ClassName MappedStatement
 * @Description 用来封装映射文件中的CRUD标签
 * @Author 小黄
 * @Date 2019/11/12 21:01
 * @Version 1.0
 */
@Data
public class MappedStatement {
    private String statementId;
    private Class<?> parameterTypeClass;
    private Class<?> resultTypeClass;
    private String statementType;
    private SqlSource sqlSource;

    public MappedStatement() {
    }

    public MappedStatement(String statementId, Class<?> parameterTypeClass, Class<?> resultTypeClass, String statementType, SqlSource sqlSource) {
        this.statementId = statementId;
        this.parameterTypeClass = parameterTypeClass;
        this.resultTypeClass = resultTypeClass;
        this.statementType = statementType;
        this.sqlSource = sqlSource;
    }

    public Class<?> getResultTypeClass() {
        return resultTypeClass;
    }
}
